Fix the build
authorMatthias Clasen <matthiasc@src.gnome.org>
Tue, 5 Feb 2008 21:43:26 +0000 (21:43 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 5 Feb 2008 21:43:26 +0000 (21:43 +0000)
svn path=/trunk/; revision=19465

ChangeLog
gtk/updateiconcache.c

index b73b02e08745cd00eda96b3df8c6435b0eb0c5a5..56c7863d31a51147a70b0f92cc810e5ed64f6a82 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-02-05  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/updateiconcache.c: Fix the previous commit to compile.
+
 2008-02-05  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/updateiconcache.c: Install a printerr handler that
index fee8fa6975f4a9cf34ec39a6a6fb83a37622bfdb..84fd0e007c39c57f99f48e5602c30bc35695bd21 100644 (file)
@@ -1586,10 +1586,16 @@ printerr_handler (const gchar *string)
     fputs (string, stderr); /* charset is UTF-8 already */
   else
     {
-      gchar *lstring = strdup_convert (string, charset);
-      fputs (lstring, stderr);
-      g_free (lstring);
-        
+      gchar *result;
+
+      result = g_convert_with_fallback (string, -1, charset, "UTF-8", "?", NULL, NULL, NULL);
+      
+      if (result)
+        {
+          fputs (result, stderr);
+          g_free (result);
+        }
+   
       fflush (stderr);
     }
 }